<template>
  <div id="app">
      <keep-alive v-if="$route.meta.keepAlive">
        <router-view></router-view>
      </keep-alive>
      <router-view v-else></router-view>
  </div>
</template>

<script lang="ts">
import Vue from "vue"
import Component from "vue-class-component"
import storage from 'assets/js/storage'

@Component({
  name: 'app',
  
})
export default class App extends Vue {

  created () {
  }
  // mounted() {
  //   this.$root.$on('reloadConfig', async () => {
  //     let { data } = await findDataByCategory({})
  //     if (data.success) {
  //       this.$root.$data.config = data.data
  //     }
  //   })
  // }

  // loadConfig(function(config){
  //     next(function(vm){
  //       vm.$root.config =  config
  //       clearTimeout(st)
  //       Vue.hiddenLoading()
  //     })
  // })

}
</script>

<style lang="stylus" scoped>
#app
  min-height 100%
  position relative
  color #333
</style>
